<SCRIPT LANGUAGE="JavaScript">
<!--
var site_root='<?php echo "http://".$_SERVER ['HTTP_HOST'].str_replace("\\","",dirname($_SERVER['PHP_SELF']));?>';
var uc_api='<?php echo UC_API;?>';
var active=1;
var alerttime=300; //多少秒未操作
//var site_root = "http://"+location.hostname+"/";

//-->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/js/dialog.js"></SCRIPT>
<script src="/static/default/js/websocket.js"></script>

<SCRIPT LANGUAGE="JavaScript" src="<?php echo STATIC_ROOT;?>jquery/jquery.form.min.js"></SCRIPT>
<!--头部-->
<div class="header">
<?php if($GLOBALS['userinfo']['uid'] > 0){
?>
  <div class="main_top_div">
    <div style="display: none;" onmouseover="$(this).show();" onmouseout="$(this).hide();" id="top_info_account" class="top_infol">
    	<div class="top_info_txt"><li class="top_info_bor"><span class="left">剩余<?php echo $GLOBALS['setting']['site_money_name'];?>：<strong class="yellow66"><?php echo $GLOBALS['userinfo']['money'];?></strong></span><span class="right blue"><a href="<?php echo url('user','charge');?>">[立即购买]</a></span></li><li class="top_info_bor"><span class="left">成功的竞拍：<?php echo $GLOBALS['userinfo']['success'];?></span><span class="right blue"><a href="<?php echo url('order','list');?>">[<?php echo $GLOBALS['userinfo']['nopay'];?>个未支付]</a></span></li><li><span class="left">积分换购：<?php echo $GLOBALS['userinfo']['scorebuy'];?></span><span class="right blue"><a target="_blank" href="<?php echo url('order','list',array('type'=>1));?>">[查看]</a></span></li></div>
    </div>
    <div class="clear"></div>
  </div>
  <?php }?>
  <div class="container980">
	<SCRIPT LANGUAGE="JavaScript">
	<!--
		function loadbid(dotype,tag,divlist,page)
		{
			mytag=['li_nd','li_n2ds','li_n3ds'];
			mydiv=['div_nextday','div_next2days','div_next3days'];
			$('#div_notice_list').show();
			for(i in mytag)
			{
				$('#'+mytag[i]).removeClass('tabthisclss');
				$('#'+mydiv[i]).hide();
			}
			$('#'+tag).addClass('tabthisclss');
			$('#'+divlist).show();
			$.post(site_root+"/tools/getbidinfo.php",{'type':dotype,'waitpage':page},
					   function(data){
						if(data)
						{
						  eval('var dataobj='+data);
						  parseBidData(dataobj,'div_'+dotype);
						}
					   } 
					);
		}
		function parseBidData(dataobj,obj)
		{
			var data=dataobj.data;
			str='';
			for(i in data)
			{
				str+='<li class=""><div class="goods"><a title="结束日期：'+data[i].lasttime+'" target="_blank" href="'+site_root+'/?act=goods&id='+data[i].id+'"><span class="blue">[第'+data[i].id+'期]</span>'+data[i].title+'</a></div><div class="ygprice">￥'+data[i].nowprice+'</div><div class="smsimg"><img onclick="javascript:SmsBidNotifyDialog('+data[i].id+');" style="cursor: pointer;" alt="" src="'+site_root+'/views/<?php echo TPL_DIR;?>/i/bid/sms.gif"></div></li>';
			}
			$('#'+obj).html(str);
		}
		function SmsBidNotifyDialog(gid)
		{
			$.post(site_root+"/index.php?con=index&act=smslist&goodsid="+gid,{},
			function(data){
				$('#dialog').html(data);
			});
			$('#blurdiv').show();
			$('#blurdiv').height($(document).height());
			$('#dialog').dialog('open');
			$('#dialog').dialog({
				title:'短信订阅',
				width: 400,
				height:300,
				buttons: {},
				close:function(){$('#blurdiv').hide();}
			});
		}
		function getuserinfo()
		{
			$('#top_info_account').show();
			
		}
	//-->
	</SCRIPT>
    <div class="info">
	<div class="bid_notice" id="top_notice" onmouseover="loadbid('nextday','li_nd','div_nextday',1);">竞拍预告</div>
	<span class="left"><a href="<?php echo url('article','view',array('id'=>16));?>" target="_blank">放心承诺</a>&nbsp;|&nbsp;<a href="<?php echo url('index','guestbook');?>" target="_blank">意见反馈</a>&nbsp;|&nbsp;<a href="<?php echo url('article','help');?>" target="_blank">帮助中心</a></span>
	</div>  
	<div style="z-index: 999; position: relative;" id="userinfo" class="userinfo">
	<?php if($GLOBALS['session']->get('uid')){?>您好！
	<a title="修改个人信息" href="<?php echo url('user');?>">
		<?php echo $GLOBALS['session']->get('username');?>
	</a>
	
	<a title="进入个人中心" href="<?php echo url('user');?>"><span class="blue imgie6">个人中心</span></a>&nbsp;&nbsp;<span id="account_state" onmouseover="getuserinfo();"><span class="imgie6 cursor" color="red">账户信息</span><img height="13" width="13" title="账户信息" class="img2bottom cursor lmar2" src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/newtop_03.gif"></span>&nbsp;&nbsp;<a href="<?php echo url('user','logout');?>">安全退出</a>
	<?php } else{?>
	<a href="<?php echo url('user','login');?>"><strong>登录</strong></a>&nbsp;|&nbsp;<a href="<?php echo url('user','register');?>" target="_blank"><strong>注册</strong></a>
	<?php }?>
	</div>
    <div class="container headheight">
      <div class="logo"><a href="<?php echo SITE_ROOT;?>" title="<?php echo $GLOBALS['setting']['site_title'];?>"><img src="<?php echo SITE_ROOT;?><?php echo $GLOBALS['setting']['site_logo'];?>" alt="<?php echo $GLOBALS['setting']['site_title'];?>"/></a></div>
      <div class="imgmenu"> <a href="<?php echo url('article','help',array('id'=>9));?>" target="_blank"><img src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_10.gif" alt="如何竞拍" onmouseover="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/newtop_10.gif';" onmouseout="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_10.gif';"  /></a><a href="<?php echo url('user','charge');?>"><img src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_11.gif" alt="购买<?php echo $GLOBALS['setting']['site_money_name'];?>" onmouseover="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/newtop_11.gif';" onmouseout="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_11.gif';" /></a><a href="<?php echo url('article','help',array('id'=>11));?>" target="_blank"><img src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_12.gif" alt="竞拍秘籍" onmouseover="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/newtop_12.gif';" onmouseout="this.src='<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/top_12.gif';" /></a> </div>
      <div class="imgtel"><img src="<?php echo STATIC_ROOT;?><?php echo TPL_DIR;?>/i/head/newtop_07.gif" alt="" /><h1 style="font-size:25px;padding:0px;margin:0px;font-weight:bold;color:#ff0000;font-family:微软雅黑"><?php echo $GLOBALS['setting']['site_tel'];?></h1></div>
    </div>
	
    <div class="container">
      <div class="nav">
        <ul>
         <li class=" <?php echo $GLOBALS['action']=='index' && $GLOBALS['controller']=='index'?'navthisclass':'navotherclass'?>"><strong><a href="<?php echo SITE_ROOT;?>">首页</a></strong></li>
          <li class="navline2"></li>
		  <li class="<?php echo $GLOBALS['action']=='itemlist'?'navthisclass':'navotherclass'?>01" id="liProCate" onmouseover="$(this).addClass('navthisclass01');$('#divProCate').show();"><strong>商品分类</strong></li>
          <li class="navline2"></li>
          <li class=" <?php echo $GLOBALS['action']=='free'?'navthisclass':'navotherclass'?>"><strong><a href="<?php echo url('index','free');?>">新用户体验</a></strong></li>
          <li class="navline2"></li>
          <li class=" <?php echo $GLOBALS['action']=='show'?'navthisclass':'navotherclass'?>"><strong><a href="<?php echo url('index','show');?>">我拍我秀</a></strong></li>
          <li class="navline2"></li>
          <li class=" <?php echo $GLOBALS['action']=='gift'?'navthisclass':'navotherclass'?>"><strong><a href="<?php echo url('index','gift');?>">积分商城</a></strong></li>
        </ul>
      </div>
      <div class="teltop">
		  <div class="scroll">
	        <div id="marquee_winner" class="left">
	        	<ul style="width:320px;">
                  <?php if($GLOBALS['successinfo']){foreach($GLOBALS['successinfo'] as $v){?>
                  <li class="scrolltxt white01" style="float:none !important;">
                    <a href="<?php echo url('index','complete',array('id'=>$v['goods_id']));?>" target="_blank" >恭喜<span class="yellow05">
                      <?php echo $v['currentuser'];?> </span> 以<span class="yellow05"> ￥<?php echo $v['nowprice'];?> </span> &nbsp;赢得了 <?php echo $v['goods_name'];?>
                    </a>
                  </li>
                  <?php }}?>
              </ul>	        
            </div>
	      </div>
     </div>
  </div>
  </div>
  <div class="clear"></div>
</div>
<!--文字滚动-->
<SCRIPT LANGUAGE="JavaScript">
<!--
$(document).ready(function(){
setInterval('AutoScroll("#marquee_winner")',3000)
});
//-->
</SCRIPT>
<!--文字滚动-->
<div class="clear"></div>
<div class="class_div" onmouseover="$(this).show();$('#liProCate').addClass('navthisclass01');"  onmouseout="$(this).hide();<?php if($GLOBALS['action']!='itemlist'){?>$('#liProCate').removeClass('navthisclass01');<?php }?>" id="divProCate" style="display:none;">
  <!--商品分类-->
	<div class="class_main">
		<ul class="class_name">
		<?php 
        $newcate = array();
		if($GLOBALS['cate'])
		{
			foreach($GLOBALS['cate'] as $k=>$v)
			{
				$newcate[$v['custom_group']][]=array('id'=>$v['id'],'catename'=>$v['catename']);
			}
		}
		?>
		<?php if($newcate){foreach($newcate as $k=>$v){?>
			<li>
			
			<strong class="black"><?php echo $k;?></strong>
			<?php foreach($v as $key=>$val){?>
			<span class="grayB4">
              <a href="<?php echo url('index','itemlist',array('cateid'=>$val['id']));?>">
              <?php echo $val['catename'];?>
              </a>
			</span>
			<?php }?>
			</li>
		<?php }}?>
		</ul>
	</div>
</div>
<div class="notice_div" id="div_notice_list" style="display:none;" onmouseover="$(this).show();" onmouseout="$(this).hide();">
<!--预告弹出层开始-->

	<div class="bid_notice_list">
		<div class="tab_div" id="div_tab_notice">
			<li id="li_nd" class="tabthisclss" onclick="loadbid('next2days','li_nd','div_nextday')" style="cursor:pointer;display:block;">明天</li>
			<li id="li_n2ds" onclick="loadbid('next2days','li_n2ds','div_next2days')" style="cursor:pointer;display:block;">后天</li>
			<li id="li_n3ds"  onclick="loadbid('next3days','li_n3ds','div_next3days')" style="cursor:pointer;display:block;">
			<?php echo date('m月d日',time()+345600);?></li>
		</div>
		<div id="notice_txt_list" class="notice_txt_list">
			<div id="div_nextday" style="">
			加载中...
			</div>
			<div id="div_next2days" style="display:none;">
			加载中...
			</div>
			<div id="div_next3days" style="display:none;">
			加载中...
			</div>
		</div>
		<div class="notice_page">
			<span id="pageNext"  style="display:none;" class="page_next blue"><a>下一页</a></span>
			<span id="pagePrevious" style="display:none;" class="page_previous blue"><a>上一页</a></span>
		</div>
	</div>
<!--预告弹出层结束-->
</div>
<!--/头部-->